﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Newtonsoft.Json.Linq;

namespace Sina.Altman.Weibo.SDK.Objects
{
    /// <summary>
    /// 获取授权用户的Uid
    /// </summary>
    public class UID
    {

        public UID(string json)
            : this(JObject.Parse(json))
        {
        }

        private JObject __jobject;
        public UID(JObject obj)
        {
            this.__jobject = obj;
        }

        public string Uid
        {
            get
            {
                return JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "uid"));
            }
        }

    }
}
